package com.tddx.activiti.test;

public class Thread_1 {
	private static boolean ready;
	private static int number;
	
	private static class Reader extends Thread{
		@Override
		public void run() {
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			while (!ready) {
				System.out.println("11111111111");
				Thread.yield();	
			}
			System.out.println("result:"+number);
		}
	}
	
	public static void main(String[] args) {
		new Reader().start();
		number=3;
		ready=true;
	}
}
